#define _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"

void test1()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPrint(plist);
	SLTPushBack(&plist, 2);
	SLTPrint(plist);
	SLTPushBack(&plist, 3);
	SLTPrint(plist);

	SLTNode* ret = SLTFind(plist, 3);
	//SLTInsert(&plist, ret, 10);
	//SLTErase(&plist, ret);
	//SLTInsertAfter(ret, 10);
	//SLTEraseAfter(ret);
	SListDesTroy(&plist);
	SLTPrint(plist);

	/*SLPushFront(&plist, 5);
	SLTPrint(plist);
	SLPushFront(&plist, 10);
	SLTPrint(plist);
	SLPushFront(&plist, 20);
	SLTPrint(plist);*/

	/*SLTPopBack(&plist);
	SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPrint(plist);*/

	//SLTPopBack(&plist);
	//SLTPrint(plist);

	//SLTPopFront(&plist);

	//SLTPopFront(&plist);
	//SLTPrint(plist);
	//SLTPopFront(&plist);
	//SLTPrint(plist);
	//SLTPopFront(&plist);
	//SLTPrint(plist);
}

int main()
{
	test1();
	return 0;
}